package cn.stylefeng.guns.modular.app.dto.e;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;
import java.math.BigDecimal;

@Data
@ApiModel("质押请求对象")
public class ApiPledgeDto
{

    /**
     * 质押类型
     */
    @NotBlank(message = "质押类型不能为空")
    @ApiModelProperty(value = "质押类型 如 BTB",required = true)
    private String type;

    /**
     * 质押
     */
    @NotNull(message = "质押数量不能为空")
    @Min(value = 100,message = "最小质押100")
    @ApiModelProperty(value = "质押数量",required = true)
    private Integer num;

}
